package com.jshoperxms;


import com.jshoperxms.websocket.YdAncientMatchWebSocket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;

/**
 * @author Arvin.Cao
 * @ClassName Application
 * @Description 启动
 * @date 16/3/13
 */
@EnableTransactionManagement
@SpringBootApplication
@EnableRedisHttpSession
public class Application extends SpringBootServletInitializer {

    public static void main(String[] agrs) {
        SpringApplication.run(Application.class, agrs);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }

}
